import request from '/@/utils/request';

export function adminindex(params: object) {
	return request({
		url: '/api/admin/index',
		method: 'post',
		data: params,
	});
}
export function pageInfo(page:string,params: object) {
	if(!params){
		params={};
	}
	return request({
		url: '/api/admin/pageInfo/'+page,
		method: 'get',
		params,
	});
}
export function systemApi(page:string,params: object) {
	if(!params){
		params={};
	}
	return request({
		url: '/api/admin/system/'+page,
		method: 'post',
		data:params,
	});
}